﻿<Window x:Class="TVManager.SettingsWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Settings" Height="300" Width="600">
    <Grid>
        <Grid Margin="20">
            <Grid.RowDefinitions>
                <RowDefinition Height="190" />
                <RowDefinition Height="30" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="200" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>


            <ListBox x:Name="languageListBox" Grid.Column="0" DisplayMemberPath="Name" Margin="10" />

            <Grid x:Name="settingsGrid" Grid.Column="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                <Label Grid.Column="0" Grid.Row="0" Content="Move File" />
                <Label Grid.Column="0" Grid.Row="1" Content="Rename File" />
                <Label Grid.Column="0" Grid.Row="2" Content="Rename Format" />
                <Label Grid.Column="0" Grid.Row="3" Content="Episode Search String" />


                <CheckBox Grid.Column="1" Grid.Row="0" Content="" IsChecked="{Binding Path=MoveFile, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" VerticalAlignment="Center" />
                <CheckBox Grid.Column="1" Grid.Row="1" Content="" IsChecked="{Binding Path=RenameFile, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" VerticalAlignment="Center" />
                <TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Path=RenameFormat, Mode=TwoWay, UpdateSourceTrigger=LostFocus, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" VerticalAlignment="Center" />
                
                
                
                <TextBox Grid.Column="1" Grid.Row="3" Text="{Binding Path=EpisodeSearchString, Mode=TwoWay, UpdateSourceTrigger=LostFocus, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" VerticalAlignment="Center" />
                <StackPanel Orientation="Vertical" Grid.Column="1" Grid.Row="4">
                    <TextBlock Text="\{0} = Series" />
                    <TextBlock Text="\{1} = Season Number" />
                    <TextBlock Text="\{2} = Episode Name" />
                    <TextBlock Text="\{3} = Episode Number" />
                </StackPanel>
                

            </Grid>


            <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center">
                <Button x:Name="saveSettingsButton" Content="Save" Margin="3" />
                <Button x:Name="cancelButton" Content="Cancel" Margin="3" />
            </StackPanel>

        </Grid>
    </Grid>
</Window>
